#include "BaseLayout.h"
#include "LayoutDialog.h"
#include <QMessageBox>

using namespace std;

BaseLayout::BaseLayout(){
	_name = "";
	_type = "";
	_description = "";
	_type = "";
	_message = "";
}

BaseLayout::~BaseLayout()
{

}

void BaseLayout::initialize()
{
	doInitialize();
}

void BaseLayout::ImportParameter(std::string json)
{

}

void BaseLayout::doInitialize()
{

}

void BaseLayout::doDeinitialize()
{

}


string BaseLayout::getName()
{
	return _name;
}

string BaseLayout::getIconPath()
{
	return _iconPath;
}

string BaseLayout::getDescription()
{
	return _description;
}

string BaseLayout::getType()
{
	return _type;
}

ParameterCollector* BaseLayout::getParameter()
{
	return _parameter;
}

string BaseLayout::getMessage()
{
	return _message;
}

void BaseLayout::showMessage(string message)
{
	QMessageBox::information(
		LayoutDialog::getInstance(),
		"Message",
		QString::fromStdString(message)
		);
}

void BaseLayout::doLayout()
{

}